package com.yuju.account.dao.mapper;

import com.yuju.account.dao.entity.UnitAccount;
import com.yuju.persist.base.mapper.BaseMapper;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

public interface UnitAccountMapper extends BaseMapper<UnitAccount, String> {
	
	BigDecimal listUnitAccountSum(Map<Object, Object> map);
	
	int updateProtocolBalance(Map<String, Object> map);
	int updateAgentBalance(Map<String, Object> map);
	
	Map<Object, Object> getYSK(Map<Object, Object> map);
	
	List<UnitAccount> listUnitAccountSS(Map<Object, Object> map);
	Integer countSSByMap(Map<Object, Object> map);
	
	List<UnitAccount> listUnitAccount(Map<Object, Object> map);
	Integer countByMap(Map<Object, Object> map);
	List<UnitAccount> listUnitAccountAndSum(Map<Object, Object> map);
	Integer sumCountByMap(Map<Object, Object> map);
	
    int deleteByPrimaryKey(String id);

    int selectCountByMap(Map<Object, Object> map);

    List<UnitAccount> selectListByMap(Map<Object, Object> map);

    int insert(UnitAccount record);

    int insertSelective(UnitAccount record);

    UnitAccount selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(UnitAccount record);

    int updateByPrimaryKey(UnitAccount record);
}